import { Component, OnInit } from '@angular/core';
import { MobileService } from '../mobile.service';

@Component({
  selector: 'app-mobile-list',
  template: `
    <div class="mobile-list">
      <h3>mobile-list works!</h3>
      <app-mobile-item></app-mobile-item>
    </div>
  `,
  styles: []
})
export class MobileListComponent implements OnInit {

  constructor(private mobileServe: MobileService) { }

  ngOnInit() {
    this.mobileServe.getMobileList();
  }

}
